<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>上传单个文件</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/reset.css">
<script type="text/javascript" src="__PUBLIC__/JS/jquery.min.js"></script>
<script type="text/javascript">
	$(function(){
		var UPLOAD_PATH = '{$UPLOAD_PATH}';
		window.dealSelectFile = function(data){
			var html = '<img src="'+UPLOAD_PATH+data.filekey+'"/>';		
			$('#result').html(html);
		}
	});
</script>
<style type="text/css">
	#upload_frame {
		width:204px;
		height:32px;
	}
	#result img {
		width:200px;
		padding:1px;
		border:#CCC 1px solid;
	}
</style>
</head>

<body>
	<div id="result">
	</div>
	<iframe id="upload_frame" src="rest.php?s=FIL/Index/onefile&filetype=Images" frameborder="0"></iframe>
</body>
</html>
